<div class="bid-details">
    <div class="bid-details-header">
        <div style="width:8%">序号</div>
        <div style="width:20%">拨打号码</div>
        <div style="width:15%">叫应对象</div>
        <div style="width:15%">单位</div>
        <div style="width:13%">职务</div>
        <div style="width:15%">拨打时间</div>
        <div style="width:14%">是否成功</div>
    </div>
    <div class="bid-details-body">

    </div>
</div>
<script>
    initBody();
    function initBody() {
        var data = $("#modal_bid_details").data('item');
        if (data) {
            var content = [];
            data.forEach(function (item, index) {
                content.push(`<div class="details-item">
                            <div style="width: 8%">${++index}</div>
                            <div title="${item.phone || ''}" style="width:20%">${item.phone || ''}</div>
                            <div style="width:15%">${item.callObj}</div>
                            <div style="width:15%">${item.org}</div>
                            <div style="width:13%">${item.post || ""}</div>
                            <div title="${item.callTime}" style="width:15%">${new Date(item.callTime).format('MM-dd hh:mm')}</div>
                            <div style="width:14%">${item.callResult == '0' ? '失败' : '成功'}</div>
                            </div>`);
            })
            $(".bid-details-body").empty().append(content);
        }
    }
</script>